package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> selectOrderList(@Param("classification")int classification,
                                @Param("start") int start,
                                @Param("pageSize") int pageSize);//分页查询订单信息

    int selectOrderCount(@Param("classification")int classification);//查询订单总数


    Order selectOrderById(@Param("id") int id);//根据id查询订单信息


}
